package composite;

/**
 * @Author: linKe
 * @Date: 2022/1/15 9:35
 * @FileName: MenuComponent
 * @version: 1.0
 * @Description: 菜单组件，子菜单和菜单项的父类
 * 接口异常定义
 */
public abstract class MenuComponent implements Iterable<MenuComponent>{

    public String getName() {
        throw new UnsupportedOperationException();
    }

    public String getDecrition() {
        throw new UnsupportedOperationException();
    }

    public double getPrice() {
        throw new UnsupportedOperationException();
    }

    public void print() {
        throw new UnsupportedOperationException();
    }

    public void add(MenuComponent component) {
        throw new UnsupportedOperationException();
    }

    public void remove(MenuComponent component) {
        throw new UnsupportedOperationException();
    }

}
